# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-language-server
pkgver=0.33.3
pkgrel=0
pkgdesc="An implementation of the Language Server Protocol for Python"
url="https://github.com/palantir/python-language-server"
arch="noarch"
license="MIT"
depends="python3 py3-wheel py3-ujson py3-pydocstyle py3-jsonrpc-server py3-jedi py3-parso py3-setuptools py3-pluggy"
checkdepends="py3-pytest py3-mock py3-pycodestyle py3-pyflakes py3-mccabe
	py3-autopep8 py3-pylint py3-python-versioneer py3-pytest-cov py3-coverage
	py3-numpy py3-pandas py3-matplotlib py3-qt5 py3-yapf py3-rope"
makedepends="python3-dev"
source="https://github.com/palantir/python-language-server/archive/$pkgver/python-language-server-$pkgver.tar.gz"
builddir="$srcdir/python-language-server-$pkgver"

case "$CARCH" in
	# Missing checkdepends: py3-qt5
	armhf) options="$options !check" ;;

	# Missing checkdepends: py3-numpy
	mips*) options="$options !check" ;;
esac

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b49aac41016ff2e2c7dbdf29f808fbcdf9bd9d4d570e33e1e9398d289e7b103c39281c75685f7a9221223ba059b7daf1e9c1d45168a08c01294209ee078c3f0c  python-language-server-0.33.3.tar.gz"
